package com.second.app.thread.join.sleep_unreleaselock;

/**
 * @author gyz
 * @date 2021/1/28 14:29
 */
public class B extends Thread {
    @Override
    public void run() {
        try {
            System.out.println("b run begin time :" + System.currentTimeMillis());
            Thread.sleep(5000);
            System.out.println("b run end time :" + System.currentTimeMillis());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
    synchronized public  void  bService(){
        System.out.println("bservice run time :"+System.currentTimeMillis());
    }
}
